import router from '@/router'

export default {
  system: [
    {
      icon: require('@/assets/svg/shut-task.svg'),
      name: '定时任务',
      openType: params => {
        router.push({
          name: 'systemShutTask',
          params
        })
      }
    }
  ],
  picture: [
    {
      icon: require('@/assets/svg/picture-compression.svg'),
      name: '图片压缩',
      openType: params => {
        router.push({
          name: 'pictureCompression',
          params
        })
      }
    },
    {
      icon: require('@/assets/svg/convert-ico.svg'),
      name: '图片转icon',
      openType: params => {
        router.push({
          name: 'pictureConvertIcon',
          params
        })
      }
    }
  ]
}
